import {intercept} from '@/http/intercept.js'

export function sceneResult(id){
    return intercept({
        url: "/activity/zodiac/scene/result",
        method: 'get',
        params: {sceneId:id}
    })
}
//查询活动列表
export function zodiacConfigs(){
    return intercept({
        url: "/activity/zodiac/list",
        method: 'get',
        params: {
            page:0,
            limit:10
        },
    })
}

//最新榜单
export function newRangeList(params){
    return intercept({
        url: "/activity/zodiac/ranking",
        method: 'get',
        params: params
    })
}
//场次详情
export function actNoDetail(sceneId){
    return intercept({
        url: `/activity/zodiac/scene/${sceneId}`,
        method: 'get',
        params: {}
    })
}
//活动规则
export function actRule(params){
    return intercept({
        url: "/activity/zodiac/rule",
        method: 'get',
        params: params
    })
}
//我的买入
export function myPurchases(params){
    return intercept({
        url: "/activity/zodiac/user/buy",
        method: 'get',
        params: params
    })
}

//我的奖励
export function myReward(params){
    return intercept({
        url: `/activity/zodiac/awards`,
        method: 'get',
        params: params
    })
}

//时间校验
export function zodiacTime(uid,params){
    return intercept({
        url: `/activity/zodiac/time`,
        method: 'get',
        params: {}
    })
}

//根据活动查询场次id
export function activityId(activityId){
    return intercept({
        url: `activity/zodiac/${activityId}`,
        method: 'get',
        params: {}
    })
}

//最新榜单 抽中生肖的明细
export function rankingZodiacs(params){
    return intercept({
        url: `activity/zodiac/ranking/zodiacs`,
        method: 'get',
        params: params
    })
}

//查询我的买入 生肖详情
export function zodiacDetail(params){
    return intercept({
        url: `activity/zodiac/buy/zodiac/detail`,
        method: 'get',
        params: params
    })
}